package com.ysd.entity;

public class News {
	private int newsId;
	private String newsTitle;
	private String newsContent;
	private int newsCategoryId;
	private String newsName;
	

	public int getNewsId() {
		return newsId;
	}
	public void setNewsId(int newsId) {
		this.newsId = newsId;
	}
	public String getNewsTitle() {
		return newsTitle;
	}
	public void setNewsTitle(String newsTitle) {
		this.newsTitle = newsTitle;
	}
	public String getNewsContent() {
		return newsContent;
	}
	public void setNewsContent(String newsContent) {
		this.newsContent = newsContent;
	}
	public int getNewsCategoryId() {
		return newsCategoryId;
	}
	public void setNewsCategoryId(int newsCategoryId) {
		this.newsCategoryId = newsCategoryId;
	}
	public String getNewsName() {
		return newsName;
	}
	public void setNewsName(String newsName) {
		this.newsName = newsName;
	}
	public News(int newsId, String newsTitle, String newsContent, int newsCategoryId) {
		super();
		this.newsId = newsId;
		this.newsTitle = newsTitle;
		this.newsContent = newsContent;
		this.newsCategoryId = newsCategoryId;
	}
	
	
	public News(int newsId, String newsTitle, String newsContent) {
		super();
		this.newsId = newsId;
		this.newsTitle = newsTitle;
		this.newsContent = newsContent;
	}
	public News(int newsId, String newsTitle, String newsContent, int newsCategoryId, String newsName) {
		super();
		this.newsId = newsId;
		this.newsTitle = newsTitle;
		this.newsContent = newsContent;
		this.newsCategoryId = newsCategoryId;
		this.newsName = newsName;
	}
	public News() {
		super();
	}
	@Override
	public String toString() {
		return "News [newsId=" + newsId + ", newsTitle=" + newsTitle + ", newsContent=" + newsContent
				+ ", newsCategoryId=" + newsCategoryId + ", newsName=" + newsName + "]";
	}
	

}
	